@model List<Course>;
    <form asp-action="Index" method="get">
  <tr><td><input type="text" name="keyword" placeholder="请输入关键字"><button type="submit">搜索</button></td></tr>
    </form>
    <a asp-action="Create">新增课程</a>
<table>
    <thead>
        <tr>
            <th>学号</th>
            <th>课程</th>
        </tr>
    </thead>
    <thead>
        @foreach (var item in Model)
        {
            <tr>
                <td>@item.Id</td>
                <td>@item.Coursename</td>
                <td>
                    <a asp-action="Edit" asp-route-id="@item.Id">编辑</a>
                    <a asp-action="Delete" asp-route-id="@item.Id">删除</a>
                </td>
            </tr>
        }
    </thead>